package co.fitstart.coach.service;

import java.util.List;

import com.demo2do.core.service.GenericService;

import co.fitstart.entity.course.round.CourseRound;
import co.fitstart.entity.course.round.RoundCoursewareStatus;
import co.fitstart.entity.principal.Principal;

/**
 * 
 * @author wangliwang
 *
 */
public interface CourseRoundService extends GenericService<CourseRound> {

    /**
     * list courseRound by coach
     * 
     * @param coach
     * @param roundCoursewareStatus
     * @return
     */
    public List<CourseRound> list(Principal coach, RoundCoursewareStatus roundCoursewareStatus);
    
    /**
     * 
     * @param coach
     * @return
     */
    public List<CourseRound> listCancel(Principal coach);
    
    /**
     * load courseRound by some condition
     * 
     * @param id
     * @param coach
     * @param roundCoursewareStatus
     * @return
     */
    public CourseRound load(Long id, Principal coach, RoundCoursewareStatus roundCoursewareStatus);
    
}
